describe('practice-4-8', function () {

    it("计算分数的精确值", function () {
        var result = accurate_calculation_fraction_value({numerator :1,denominator:6});
        expect(result.first_loop_body).toBe('0.16');
        expect(result.start).toBe(2);
        expect(result.end).toBe(2);

        var result_temp = accurate_calculation_fraction_value({numerator :1,denominator:3});
        expect(result_temp.first_loop_body).toBe('0.3');
        expect(result_temp.start).toBe(1);
        expect(result_temp.end).toBe(1);

        var result_tmp = accurate_calculation_fraction_value({numerator :2,denominator:3});
        expect(result_tmp.first_loop_body).toBe('0.6');
        expect(result_tmp.start).toBe(1);
        expect(result_tmp.end).toBe(1);

        var tmp = accurate_calculation_fraction_value({numerator :25,denominator:95});
        expect(tmp.first_loop_body).toBe('0.263157894736824105');
        expect(tmp.start).toBe(1);
        expect(tmp.end).toBe(18);
    });

});
